var http = require('http');
var url = require('url');
var util = require('util');


var server = http.createServer(function(req,res){
    console.log(req)
    res.writeHead(200,{'Content-Type':'text/plain; charset=utf-8'});
    res.end(util.inspect(url.parse(req.url,true)))
    console.log(res)
}).listen(8080);
console.log(server)